/**
 * Historico de alteração
 *
 * Data         Autor   Descrição
 * 24/10/2010   Jerry   Criação do cabeçalho.
 *
 */

package railbee.banco.dao;

import railbee.banco.dto.*;
import railbee.banco.exceptions.*;

public interface ServidoresDao
{
	/** 
	 * Inserts a new row in the servidores table.
	 */
	public ServidoresPk insert(Servidores dto) throws ServidoresDaoException;

	/** 
	 * Updates a single row in the servidores table.
	 */
	public void update(ServidoresPk pk, Servidores dto) throws ServidoresDaoException;

	/** 
	 * Deletes a single row in the servidores table.
	 */
	public void delete(ServidoresPk pk) throws ServidoresDaoException;

	/** 
	 * Returns the rows from the servidores table that matches the specified primary-key value.
	 */
	public Servidores findByPrimaryKey(ServidoresPk pk) throws ServidoresDaoException;

	/** 
	 * Returns all rows from the servidores table that match the criteria 'sigla_estacao = :siglaEstacao'.
	 */
	public Servidores findByPrimaryKey(String siglaEstacao) throws ServidoresDaoException;

	/** 
	 * Returns all rows from the servidores table that match the criteria ''.
	 */
	public Servidores[] findAll() throws ServidoresDaoException;

	/** 
	 * Returns all rows from the servidores table that match the criteria 'sigla_estacao = :siglaEstacao'.
	 */
	public Servidores[] findWhereSiglaEstacaoEquals(String siglaEstacao) throws ServidoresDaoException;

	/** 
	 * Returns all rows from the servidores table that match the criteria 'porta_servidor = :portaServidor'.
	 */
	public Servidores[] findWherePortaServidorEquals(int portaServidor) throws ServidoresDaoException;

	/** 
	 * Returns all rows from the servidores table that match the criteria 'ip_servidor = :ipServidor'.
	 */
	public Servidores[] findWhereIpServidorEquals(String ipServidor) throws ServidoresDaoException;

	/** 
	 * Sets the value of maxRows
	 */
	public void setMaxRows(int maxRows);

	/** 
	 * Gets the value of maxRows
	 */
	public int getMaxRows();

	/** 
	 * Returns all rows from the servidores table that match the specified arbitrary SQL statement
	 */
	public Servidores[] findByDynamicSelect(String sql, Object[] sqlParams) throws ServidoresDaoException;

	/** 
	 * Returns all rows from the servidores table that match the specified arbitrary SQL statement
	 */
	public Servidores[] findByDynamicWhere(String sql, Object[] sqlParams) throws ServidoresDaoException;

	public void setNomeTabela(String nomeTabela);
		
	
}
